// clang-format off

#include <QApplication>
#include <QIcon>
#include <screenutil.h>

#include <QStyle>
#include <QStyleFactory>
#include <version.h>

#include <mainwindow.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    a.setApplicationName("Samba 共享管理工具 - v" PROJECT_VERSION);
    a.setApplicationVersion(PROJECT_VERSION);
    a.setOrganizationName("spark-union");
    a.setOrganizationDomain("https://www.spark-app.store/");
    a.setWindowIcon(QIcon("://icon.png"));

    MainWindow w;
    w.show();

    ScreenUtil::moveCenter(w);

    return a.exec();
}
